<?php
$this->sendDebugMessage("start model start");

$user = $this->userCenter->userList[$ip];
$tid = $user->tableID;

$this->userCenter->roomList[$user->roomID]->tableList[$tid]->start();

$response = new Response();
$response->event = "SE_START_UPDATE";
$response->body = '{"tableID":"'.$tid.'"}';
//向在大厅中没有进入游戏桌的玩家发送更新
$this->broadcastGroup($response,$this->userCenter->roomList[$user->roomID]->getFreeUser());

//向游戏桌中的玩家发送信息
$table = $this->userCenter->roomList[$user->roomID]->tableList[$user->tableID];

foreach($table->seatList as $k=>$v)
{
	$response->body = $table->getCardInfo($k);
	$this->sendData($v->userID,$response);
	echo $response;
}
print_r($this->userCenter);
print_r($response);
$this->sendDebugMessage("start model end");
